<?php

namespace App\Kuafu\Brand\Model;

use App\Kuafu\Base\Model\BaseModel;
use App\Kuafu\Base\Model\Traits\KfSoftDeletes;
use App\Kuafu\Base\Model\Traits\KfUid;
use Illuminate\Database\Eloquent\Factories\HasFactory;

class Brand extends BaseModel
{
    use HasFactory, KfSoftDeletes, KfUid;

    protected $table = 'brands';

    public static function setBrandInfoById($brandId, $data)
    {
        return Brand::where('id', '=', $brandId)
                    ->update($data);
    }
}
